<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var month=prompt("请您输入月份");
			var date=prompt("请您输入日期")
			if((month==3&&date<=31&&date>=21)||(month==4&&date<=19&&date>=0)){
				alert("白羊座")
			}else if((month==4&&date<=30&&date>=20)||(month==5&&date<=20&&date>=0)){
				alert("金牛座")
			}else if((month==5&&date<=31&&date>=21)||(month==6&&date<=21&&date>=0)){
				alert("双子座")
			}else if((month==6&&date<=30&&date>=22)||(month==7&&date<=22&&date>=0)){
				alert("巨蟹座")
			}else if((month==7&&date<=31&&date>=23)||(month==8&&date<=22&&date>=0)){
				alert("狮子座")
			}else if((month==8&&date<=31&&date>=23)||(month==9&&date<=22&&date>=0)){
				alert("处女座")
			}else if((month==9&&date<=30&&date>=23)||(month==10&&date<=23&&date>=0)){
				alert("天秤座")
			}else if((month==10&&date<=31&&date>=24)||(month==11&&date<=22&&date>=0)){
				alert("天蝎座")
			}else if((month==11&&date<=30&&date>=23)||(month==12&&date<=21&&date>=0)){
				alert("射手座")
			}else if((month==12&&date<=31&&date>=22)||(month==1&&date<=19&&date>=0)){
				alert("摩羯座")
			}else if((month==1&&date<=31&&date>=20)||(month==2&&date<=18&&date>=0)){
				alert("水瓶座")
			}else if((month==2&&date<=29&&date>=19)||(month==3&&date<=20&&date>=0)){
				alert("双鱼座")
			}else{
				alert("请输入正确的日期")
			}
		</script>
	</body>
</html>
